﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IHISCETeim.DAL;
using IHISCETeim.Model;
using IHISCETeim.Library;
using System.Data;

namespace IHISCETeim.BLL
{
    public  class JSUserDWFController
    {
        public static int Add(string UserName, Guid DWFID)
        {
            return JSUserDWFDAL.Add(UserName, DWFID);
        }
        /// <summary>
        /// 删除过期 的权限图纸
        /// </summary>
        /// <returns></returns>
        public static bool DeleteExpiryDWF()
        {
            return JSUserDWFDAL.DeleteExpiryDWF();
        }
        /// <summary>
        /// 获取指定用户的所有权限图纸
        /// </summary>
        /// <param name="UserName"></param>
        /// <returns></returns>
        public static List<JSUserDWFInfo> GetListByUserName(string UserName)
        {
            return CBO.FillCollection<JSUserDWFInfo>( JSUserDWFDAL.GetListByUserName(UserName));
        }
    }
}
